﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Collections;

namespace BusinessLogicLayer
{
    public static class Engine
    {
        public static List<MilitaryUnit> test()
        {
            return DatabaseDataContext.Instance.MilitaryUnits.ToList();
            //return DatabaseDataContext.Instance.MilitaryUnits
        }
        public static IEnumerable GetItemsList()
        {
            return DatabaseDataContext.Instance.Items.Select(x => new
            {
                ID = x.id,
                Name = x.name,
                Unit = x.Unit.name,
                Group = x.Group.name
            }).ToList();
        }
    }
}
